<div class="row" style="margin-top:40px;">
    <div class="col-md-2">
        <?php include(dirname(dirname(__FILE__)) . '/sidebar.phtml'); ?>
    </div>
    <div class="col-md-10">
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="app-panel-title">用户列表</span>
                <a class="btn btn-sm btn-success app-panel-btn" href="/manage/operate/create/"> <i
                        class="glyphicon glyphicon-plus"></i>增加后台用户</a>
                <div style="clear:both;"></div>
            </div>

            <div class="panel-body">
                <table class="table table-bordered table-striped">
                    <tr>
                        <td>ID</td>
                        <td>昵称</td>
                        <td>邮箱</td>
                        <td>剩余额度</td>
                        <td>管理</td>
                    </tr>
                    <?php foreach ($user_rowsets as $row): ?>
                        <tr>
                            <td><?php echo $row['uid']; ?></td>
                            <td><?php echo $row['username'] ?></td>
                            <td><?php echo $row['email'] ?></td>
                            <td><?php echo $row['limit_modify'] ?></td>
                            <!--<td><?php /*echo date('Y-m-d H:i',$row['updated_at']);*/ ?></td>-->
                            <td><a class="btn btn-info btn-xs" href="/manage/operate/role/?uid=<?php echo $row['uid'] ?>"><i
                                        class="glyphicon glyphicon-edit"> </i> 设置权限</a>
                                <!--<a class="btn btn-success btn-xs" href="/manage/operate/create/?uid=<?php echo $row['uid'] ?>"><i class="glyphicon glyphicon-edit"> </i> 编辑</a>-->

                            </td>
                        </tr>
                    <?php endforeach; ?>
                </table>
                <?php $pager->render(); ?>
            </div>
        </div>
    </div>
</div>